<div id="feautredwrap">

<?php $featured_category1 = get_option('swt_featured_category12'); $featured_number1 = '4';

$featured_category = get_cat_ID($featured_category1);

if(($featured_category1 == "Choose a category:") || ($featured_number1 == '')) { ?>

<?php { /* nothing */ } ?>


<?php } else { ?>


<?php
//insert your category name
$x=0; $my_query = new WP_Query('cat='. $featured_category . '&' . 'offset=' . '&' . 'showposts='. $featured_number1);
while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; $the_post_ids = get_the_ID(); $x++;
?>

<div class="feat fm<?php echo $x; ?>">
<div class="ffcom">
<?php comments_popup_link('0', '1', '%', 'fcomm'); ?>
</div>
<?php get_the_image( array( 'custom_key' => array( 'fi2' ), 'default_size' => 'full', 'image_class' => 'aligncenter', 'width' => '201', 'height' => '128' ) ); ?>
<h4><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h4>
<p><?php truncate_post(100,true); ?></p>
<a class="more-link" href="<?php the_permalink() ?>#more"><img src="<?php bloginfo('template_directory'); ?>/images/more.png" alt="Read More" /></a>
</div><!-- FEAT META END -->

<?php endwhile;?>


<?php } ?>

</div><!-- FEATURED CATEGORY END -->
